package IC.Types;

public class NullType extends Type {
	
	public NullType() {
		super(3);
	}
	
	public String getStringForTypeTable(){
		return id + ": Primitive type: " + toString();
	}
	
	public String toString(){
		return "null";
	}
	

	@Override	
	public boolean subTypeOf(Type t){
		if ( (t instanceof ClassType) || (t instanceof StringType) || (t instanceof ArrayType)){
			return true;
		}
		else {
			return false;
		}
	}
	
}
